home *** CD-ROM | disk | FTP | other *** search
-
- ;
- page 60,132
- title Set Caps Lock Off
- ;
- ; Author: Marty Prahl
- ; Date: 10-Dec-1984
- ; Rev: 1.0
- ;
- ; Copyright (c) 1984 by Marty Prahl
- ;
- ; Abstract:
- ;
- ; Calling Sequence:
- ;
- ; A>CAPSOFF
- ;
- ;
- ;
- ;----------------------------------------------------------------------------
- ;
- ; Local Data
- ;
- ;----------------------------------------------------------------------------
- ;
- data segment at 40h
- org 17h
- kb_flag db ?
- ;
- ; for a complete decription of the
- ; rom bios keyboard data area
- ; see the IBM PC-XT Technical Reference
- ; Appendix A page A-3
- ;
- data ends
- ;
- ;----------------------------------------------------------------------
- ;
- ; Caps Lock Off
- ;
- ;----------------------------------------------------------------------
- ;
- code_seg segment
- assume cs:code_seg,ds:data
-
- capsoff proc far
-
- push ds ; here we go again
- mov ax,data
- mov ds,ax
-
- mov ah,kb_flag ; grab the keyboard flag
- and ah,0bfh ; now turn off the caps lock
- mov kb_flag,ah
-
- pop ds
-
- mov al,0 ; no errorlevel
- mov ah,4ch ; terminate
- int 21h
-
- capsoff endp
-
- code_seg ends
- end capsoff
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-